module.exports = class extends think.Model {
  get relation() {
    return {
      user: { // 配置跟分类的关联关系
        type: think.Model.MANY_TO_MANY,
        rModel: 'user_role',
        rfKey: 'user_id'
      },
      action: { // 配置跟分类的关联关系
        type: think.Model.MANY_TO_MANY,
        rModel: 'role_action',
        rfKey: 'action_id'
      }
    }
  }
};
